<div class="contents" >
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">私募基金列表</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <label class="sr-only" >姓名</label>
      <input type="text" class="form-control" placeholder="基金名称" ng-model="searchMap.jjmc">
    </div> 
    <div class="form-group">
      <select class="form-control" placeholder="发布状态" ng-model="searchMap.pubStatus" ng-options="m.value as m.text for m in dictMap.simuStatusModel" ><option value="">发布状态</option></select> 
    </div> 
    <div class="form-group">
      <select class="form-control" placeholder="基金类型" ng-model="searchMap.jjfl" ng-options="m.value as m.text for m in dictMap.jjflModelNew" ><option value="">基金类型</option></select> 
    </div> 
    <div class="form-group">
      <select class="form-control" placeholder="结构形式" ng-model="searchMap.jgxs" ng-options="m.value as m.text for m in dictMap.jgxsModel" ><option value="">结构形式</option></select> 
    </div> 
    <div class="form-group">
      <select class="form-control" placeholder="组织形式" ng-model="searchMap.zzxs" ng-options="m.value as m.text for m in dictMap.zzxsModel" ><option value="">组织形式</option></select> 
    </div> 
    <button type="submit" class="btn btn-default">查询</button>
  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="70">ID</th>
        <th width="300">基金简称</th>
        <th width="80">基金编码</th>
        <th width="150">成立日期</th>
        <th width="150">基金类型</th>
        <th width="150">基金经理</th>
        <th width="200">基金公司</th>
        <th width="100">发行人</th>
        <th width="80">状态</th>
        <th width="80">推荐状态</th>
        <th width="200">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in list">
        <td>{{item.id}}</td>
        <td><a href="#/simu/baseinfo?id={{item.id}}&jjbm={{item.jjbm}}">{{item.jjmc}}</a></td>
        <!--<td><a href="#/simu/view?id={{item.id}}">{{item.jjmc}}</a></td>-->
        <td>{{item.jjbm}}</td>
        <td>{{item.jjclsj | date:'yyyy-MM-dd'}}</td>
        <td>{{item.jjfl}}</td>
        <td>{{item.jjjlmc}}<span ng-if="item.jjjlmc2">,{{item.jjjlmc2}}</span></td>
        <td>{{item.jjgs}}</td>
        <td>{{item.jjfxr}}</td>
        <td><span ng-class="{'text-muted':item.pubStatus=='0','text-primary':item.pubStatus=='1'}">{{item.pubStatus | simuStatusRender}}</span></td>
        <td ng-click="showChangeWeight(item.id)" class="cur-p">
          <span ng-show="!changeWeightMap[item.id]" title="点击修改">{{item.reCommendWeight}}</span>
          <select ng-show="changeWeightMap[item.id]" class="form-control" ng-init="productWeightMap[item.id]=item.reCommendWeight" ng-change="changeWeight(item.id)" ng-model="productWeightMap[item.id]" ng-options="m.value as m.text for m in dictMap['productCommendWeightModel']" placeholder="优化级" has-auth where="btn" who="PRODUCT_RECOMMEND"><option value="">优化级</option></select>
        </td>
        <td class="optd">
        
        <a href="#/simu/baseinfo?id={{item.id}}&jjbm={{item.jjbm}}"  has-auth where="btn"  who="PRODUCT_EDIT" owner="{{item.createBy}}">编辑</a>

         <a href="#/productOrderData/list?proId={{item.id}}&pType=05" has-auth where="btn"  who="PRODUCT_EDIT" owner="{{item.createBy}}">资料({{item.orderCount}})</a>
        <!--  
          <a href="#/simu/edit?id={{item.id}}">编辑</a>
          <a href="#/simu/view?id={{item.id}}">详情</a>
          <div class="dropdown pull-right">
            <button class="btn btn-sm btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">更多操作<span class="caret"></span></button>
            <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
              <li><a href="#/simu/buyinfo/list?jjbm={{item.jjbm}}">购买须知</a></li>
              <li><a href="#/simu/buyhis/list?jjbm={{item.jjbm}}">重仓股</a></li>
              <li><a href="#/simu/lsyj?id={{item.id}}">历史业绩</a></li>
              <li><a href="#/simu/ndyj?id={{item.id}}">年度业绩</a></li>
              <li><a href="#/simu/lsjz?id={{item.id}}">历史净值</a></li>
              <li><a class="cur-p" ng-click="remove(item.id)" ng-confirm-click="请确认操作?">删除</a></li>
              <li ng-if="item.pubStatus != '1'"><a class="cur-p" ng-click="start(item.id,item.jjbm)" ng-confirm-click="请确认操作?">上架</a></li>
              <li ng-if="item.pubStatus == '1'"><a class="cur-p" ng-click="stop(item.id,item.jjbm)" ng-confirm-click="请确认操作?">下架</a></li>
            </ul>
          </div>
          -->
        </td>
      </tr>
    </tbody>
  </table>

	<div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>